package com.jsh.api;

import com.jsh.erp.datasource.entities.DepotHead;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "jsh-system",contextId = "depotHeadApi",path = "/jshERP-boot/api/depotHeadApi")
public interface DepotHeadApi {

    @GetMapping("/getDepotHeadListByAccountIds")
    List<DepotHead> getDepotHeadListByAccountIds(@RequestParam("accountIds") String[] accountIds);

    @GetMapping("/getDepotHead")
    DepotHead getDepotHead(@RequestParam("number") String number);
}
